<template>
	<view class="page">
		<view class="page_con">
			<view class="slogen_item">
				<image src="@/static/img/guide/guide_slogen.png" mode="aspectFit"></image>
			</view>
			<view class="butt_item">
				<image @click="openWeb('/pages/login/index')" src="@/static/img/guide/guide_butt.png" mode="aspectFill">
				</image>
				<view class="copyright_item">
					版权所有 上海碧相信智能科技有限公司
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	// import {
	// 	toLogin
	// } from '@/utils/toLogin.js';
	// 欢迎页
	export default {
		data() {
			return {

			};
		},
		onLoad() {
			// 检验登录状态
			if (uni.getStorageSync("accessToken")) {
				uni.reLaunch({
					url: '/pages/home/index'
				})
			} else {
				// toLogin()
			}
		},
		methods: {
			openWeb(v) {
				uni.reLaunch({
					url: v
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.page_con {
		min-height: 100vh;
		min-height: 100dvh;
		background-image: url('@/static/img/guide/guide_back.png');
		background-size: cover;
		background-repeat: no-repeat;
		background-position: top center;
		position: relative;

		.slogen_item {
			text-align: center;

			image {
				margin-top: 10%;
			}
		}

		.butt_item {
			position: absolute;
			bottom: 4%;
			left: 0;
			right: 0;
			text-align: center;

			image {
				width: 507rpx;
				height: 199rpx;
			}

			.copyright_item {
				color: #fff;
				font-size: 28rpx;
				margin-top: 6%;
			}
		}
	}
</style>
